#ifndef ALLOY_H
#define ALLOY_H

#include <QVariant>
#include <QString>
#include <QModelIndex>

#include "Compound.h"

struct Alloy {
    QModelIndex firstCompoundIndex;
    QModelIndex secondCompoundIndex;

    QString name;

    double Eg_bow;
    double a_lc_bow;
    double delta_so_bow;
    double vbo_bow;
    double mass_ef_bow;
    double ac_bow;
    double av_bow;
    double b_bow;
    double c11_bow;
    double c12_bow;

    inline Compound firstCompound() const {
        return firstCompoundIndex.data(Qt::UserRole).value<Compound>();
    }

    inline Compound secondCompound() const {
        return secondCompoundIndex.data(Qt::UserRole).value<Compound>();
    }
};

Q_DECLARE_METATYPE(Alloy)

#endif // ALLOY_H
